// ----------------------------------
// RSDK Project: Sonic 1/Sonic 2
// Script Description: Tails Object Object
// Script Author: Christian Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

// Aliases
private alias 2 : TYPE_TAILSOBJECT

// Function declarations
reserve function TailsObject_Function60

// Static Values

// Tables




event ObjectMain

		object.value12++
		object.value12 %= 40
		temp0 = screen.xcenter
		if object.propertyValue == 1
			temp0 -= 8
		else
			temp0 -= 0
		endif
		object.ixpos = temp0
		object.iypos = 96
end event


event ObjectDraw
		temp0 = object.value12
		temp0 >>= 3
		if object.visible == 1
			DrawSpriteFX(temp0, FX_FLIP, object.xpos, object.ypos)
		end if
		object.drawOrder = 3
end event


event ObjectStartup
		LoadSpriteSheet("Players/Tails1.gif")
		SpriteFrame(-22, -8, 16, 24, 82, 199)
		SpriteFrame(-26, -8, 20, 24, 99, 199)
		SpriteFrame(-26, -8, 20, 24, 120, 199)
		SpriteFrame(-26, -8, 20, 24, 141, 199)
		SpriteFrame(-26, -8, 20, 24, 162, 199)
		SpriteFrame(-35, -8, 24, 16, 231, 166)
		SpriteFrame(-35, -8, 24, 16, 231, 183)
		SpriteFrame(-35, -8, 24, 16, 231, 200)
		SpriteFrame(-25, 9, 20, 16, 235, 217)
		SpriteFrame(-25, 9, 18, 16, 237, 234)
		SpriteFrame(-25, 9, 20, 16, 216, 234)
		SpriteFrame(-30, -6, 24, 16, 231, 166)
		SpriteFrame(-30, -6, 24, 16, 231, 183)
		SpriteFrame(-30, -6, 24, 16, 231, 200)
end event

event RSDKDraw
	DrawSprite(0)
end event

event RSDKLoad
	LoadSpriteSheet("Global/Display.gif")
	SpriteFrame(-16, -16, 32, 32, 1, 143)
end event
